package com.test.springai.config;

import com.test.springai.service.StockFunctionService;
import java.util.function.Function;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;

/**
 * Created with IntelliJ IDEA.
 *
 * @description:
 * @author: liuziyang
 * @since: 8/22/25 3:50 PM
 * @modifiedBy:
 * @version: 1.0
 */
@Configuration
public class FunctionCallConfig {

  /**
   * Stock function function.
   *
   * @return the function
   */
  @Bean("stockFunction")
  @Description("获取个人股票账户信息")
  public Function<StockFunctionService.Request, StockFunctionService.Response> stockFunction() {
    return new StockFunctionService();
  }
}
